package com.ruibang.glass.produce.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruibang.glass.produce.domain.req.Cold1DispatchReq;
import com.ruibang.glass.produce.entity.Cold1Dispatch;
import com.teaming.cloud.framework2.autoconfigure.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-06-06  14:23
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface Cold1DispatchMapper extends BaseMapper<Cold1Dispatch> {
    Cold1Dispatch getData(@Param("cold1DispatchReq") Cold1DispatchReq cold1DispatchReq);

    @DS("hot2_bc2mes")
    int getHqNum(@Param("startTs") String startTs, @Param("endTs") String endTs);

    @DS("cold1_bc2mes")
    int getTotalTrNum(@Param("startTs") String valueOf,@Param("endTs") String valueOf1);

    LocalDateTime getLatestTime();

}
